package com.iot.web.controller.system;


import com.iot.common.core.domain.AjaxResult;
import com.iot.common.core.domain.entity.SysUser;
import com.iot.common.core.page.TableDataInfo;
import com.iot.system.domain.TestRecord;
import com.iot.system.service.STestRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import static com.iot.common.core.domain.AjaxResult.success;

@RestController
@RequestMapping("/test/record")
public class TestRecordController {

    @Autowired
    private STestRecordService sTestRecordService;

    @GetMapping("/list")
    public AjaxResult list(@RequestParam("id") Integer id)
    {
        TestRecord testRecord = new TestRecord();
        TestRecord list = sTestRecordService.selectUserList(id);
        return success(list);
    }
}
